package oop4;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest6 {
    public static void main(String[] args) {
        //父类引用p指向的子类对象
        Pet p=new Penguin("小花花",99,88,"母");
        p.print();
    }
}
